package com.fr.data.core.db.dialect;

import java.sql.Connection;
import java.sql.SQLException;

public class AccessDialect extends MSSQLDialect
{
  public String createSequence(Connection paramConnection, String paramString1, String paramString2, String paramString3)
  {
    return "AUTOINCREMENT";
  }

  public void setAutoCommit(Connection paramConnection, boolean paramBoolean)
    throws SQLException
  {
  }

  public String columnType2SQL(int paramInt, String paramString)
  {
    switch (paramInt)
    {
    case 12:
      return "varchar(" + paramString + ")";
    case -5:
      return "Double";
    case 4:
      return "Integer";
    case -6:
      return "byte";
    case 1111:
      return "GUID";
    case 2:
      return "money";
    case 2004:
      return "image";
    case -4:
      return "image";
    case -1:
      return "longchar";
    case -2:
      return "binary(" + paramString + ")";
    }
    return TypeUtils.getTypeName(paramInt);
  }
}